package com.example.demo.test;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

import static com.example.demo.config.config_helper.get_all_config;

/**
 * @ClassName config_test
 * @Description
 * @date 2022/11/11 16:17
 * @Author yanceysong
 * @Version 1.0
 */
public class config_test {
    public static void main(String[] args) {
        HashMap<String, HashMap<String, String>> map = new HashMap<>();
        HashMap<String, String> config_map = new HashMap<>();
        config_map.put("dispatcher_url", "1231231231232");
        config_map.put("lp_address", "654fgbsvdgbvfrv");
        map.put("ap", config_map);
        Map<String, File> fileMap = get_all_config(map);
        fileMap.forEach((service, file) -> System.out.println(service + ": " + file.getPath()));
    }
}
